﻿using System.Windows;
using System.Windows.Controls;
using LiveTiss.Schemas;

namespace LiveTiss.Guias.UserControls
{
    public partial class ProfissionalExecutante : UserControl
    {
        #region Value

        public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value",
            typeof(ct_profissionalExecutante), typeof(ProfissionalExecutante), new PropertyMetadata(null));

        public ct_profissionalExecutante Value
        {
            get { return (ct_profissionalExecutante)GetValue(ValueProperty); }
            set { SetValue(ValueProperty, value); }
        }

        #endregion

        public ProfissionalExecutante()
        {
            this.DataContext = this;

            #region Value
            if (this.Value == null)
            {
                this.Value = new ct_profissionalExecutante()
                {
                    codigoCBOS = st_CBOS.Item000000,
                    codigoCBOSSpecified = true,
                    conselhoProfissional = new ct_conselhoProfissional()
                    {
                        numeroConselho = string.Empty,
                        siglaConselho = st_conselhoProfissional.COREN,
                        ufConselho = st_UF.AC
                    },
                    nomeExecutante = string.Empty
                };
            }
            #endregion

            InitializeComponent();
        }
    }
}
